package ysq.xyg.recovery.service;

import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.recovery.model.po.RecoveryCircleOrder;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.recovery.model.vo.RecoveryCircleOrderVo;

import java.util.List;

/**
 * 回收金模块-回收商圈订单service接口
 *
 * @author congcong tao
 * @date 2019-8-1 15:03:02
 */
public interface RecoveryCircleOrderService extends BaseService<RecoveryCircleOrder> {

    /**
     * 分页查询
     *
     * @param recoveryCircleOrderVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-1 15:03:02
     */
    ReturnEntity page(RecoveryCircleOrderVo recoveryCircleOrderVo, int pageSize, int pageNum);

    /**
     * 分页关联查询
     * @param recoveryCircleOrderVo
     * @param pageSize
     * @param pageNum
     * @author congcong tao
     * @date 2019/8/2 16:20
     */
    ReturnEntity pageLeft(RecoveryCircleOrderVo recoveryCircleOrderVo, int pageSize, int pageNum);

    /**
     * 修改
     *
     * @param recoveryCircleOrderVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-1 15:03:02
     */
    ReturnEntity addOrUpdate(RecoveryCircleOrderVo recoveryCircleOrderVo, SysUser currentUser);

    /**
     * 微信端修改保存
     * @param recoveryCircleOrderVo
     * @author congcong tao
     * @date 2019/8/1 16:04
     */
    ReturnEntity addOrUpdate(RecoveryCircleOrderVo recoveryCircleOrderVo);

    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author congcong tao
     * @date 2019-8-1 15:03:02
     */
    ReturnEntity delete(String id, SysUser currentUser);

    /**
     * 获取集合
     *
     * @param recoveryCircleOrderVo 对象
     * @return List<RecoveryCircleOrder> RecoveryCircleOrder集合
     * @author congcong tao
     * @date 2019-8-1 15:03:02
     */
    List<RecoveryCircleOrder> acceptList(RecoveryCircleOrderVo recoveryCircleOrderVo);

    /**
     * 根据ids设置回收人
     * @param ids ids用逗号区分
     * @param status
     * @param manageContent
     * @author congcong tao
     * @date 2019/8/2 16:11
     */
    ReturnEntity updateWasteMemberId(String ids, String wasteMemberId, String manageContent);
}
